 <div>
   <h1>Nhập Hàng</h1>
    <form name="frmInputProduct" id="frm_input_product" method="post" action="<?php echo base_url(array('manager','manager','saveProductDetail')); ?>">
        <?php
            $date = new DateTime();
            $date = $date->format('d-M-Y');
        ?>
        <p class="message"></p>

        <p>
            <label>Chọn Hãng :</label><br />
            <select id="cbxhang" class="select">
                <option value="-1">-</option>
            <?php foreach($mComs as $mCom) { ?>
                <option value="<?php echo $mCom->getId(); ?>"><?php echo html_escape($mCom->getName()); ?></option>
            <?php } ?>
            </select>
            
            <button id="btnaddhang" type="button" class="button button-mini orange">Thêm Hãng</button>
        </p>

        <p class="content-loai">
            <label>Chọn Loại :</label><br />
            <select id="cbxmodel" name="product_id" class="select">
                <option value="-1">-</option>
            <?php foreach($products as $product) { ?>
                <option value="<?php echo $product->getId(); ?>"><?php echo html_escape($product->getName()); ?></option>
            <?php } ?>
            </select>
            
            <button id="btnaddproduct" type="button" class="button button-mini orange">Thêm Loại</button>
        </p>
        
        <table class="content-input-model-detail">
            <tr>
                <td>Giá:</td>
                <td><input id="price" name="price_input" type="text" maxlength="20"></td>
            </tr>
            <tr>
                <td>IMEI:</td>
                <td><input id="imei" name="imei" type="number" maxlength="50"></td>
            </tr>
            <tr>
                <td>CPU:</td>
                <td><input id="cpu" name="cpu" type="text" maxlength="50"></td>
            </tr>
            <tr>
                <td>Hệ điều hành:</td>
                <td><input id="hdh" name="hdh" type="text" maxlength="50"></td>
            </tr>
            <tr>
                <td>Màn hình:</td>
                <td><input id="screen" name="screen" type="text" maxlength="50"></td>
            </tr>
            <tr>
                <td>Pin:</td>
                <td><input id="pin" name="pin" type="text" maxlength="50"></td>
            </tr>
            <tr>
                <td>Ghi Chú:</td>
                <td><textarea id="note" name="note" maxlength="1000" rows="5"></textarea></td>
            </tr>
            <tr>
                <td colspan = "2"><button id="btnaddproductdetail" type="button" class="button orange">Nhập Hàng</button></td>
            </tr>
        </table>
    </form>
 </div>
 
<div id="myModalAddProduct" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="myModalAddProduct" aria-hidden="true">
    <input id="urlmanager" type="hidden" value="<?php echo base_url(array('manager','manager')); ?>" >
    <div class="modal-header">
        <h3 id="myModalLabel">Nhập Sản Phẩm Muốn Tạo</h3>
    </div>
    <div class="modal-body">
        <div id="message"class="inline message" style="display: none"></div>
        <br />
        <table>
            <tr>
                <td style="text-align: left; width: 15px" >Tên:</td><td>
                <input id="name" name="name" type="text" maxlength="50">
                </td>
            </tr>
        </table>
    </div>
    <div class="modal-footer">
        <button type="button" id="btnok" class="btn btn-warning">
            OK
        </button>
        <button type="button" id="btncancel" class="btn" data-dismiss="modal" aria-hidden="true">
            cancel
        </button>
    </div>
</div>


<div id="myModalAddHang" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="myModalAddHang" aria-hidden="true">
    <input id="urlmanager" type="hidden" value="<?php echo base_url(array('manager','manager')); ?>" >
    <div class="modal-header">
        <h3 id="myModalLabel">Nhập Hãng Muốn Tạo</h3>
    </div>
    <div class="modal-body">
        <div id="message"class="inline message" style="display: none"></div>
        <br />
        <table>
            <tr>
                <td style="text-align: left; width: 15px" >Tên:</td><td>
                <input id="name" name="name" type="text" maxlength="50">
                </td>
            </tr>
        </table>
    </div>
    <div class="modal-footer">
        <button type="button" id="btnok" class="btn btn-warning">
            OK
        </button>
        <button type="button" id="btncancel" class="btn" data-dismiss="modal" aria-hidden="true">
            cancel
        </button>
    </div>
</div>